/**
 * 
 */
package design_pattern.visitor.pc;

/**
 * @author linzq
 *
 */
public class CPU extends Equipment {


  @Override
  public void accept(Visitor v) {
    System.out.println("CPU has been visited.");
    v.visitCPU(this);
  }


  @Override
  public float price() {
    return 500.00f;
  }

}
